
{% extends "registration/base.html" %}
{% load i18n %}

{% block title %} {% trans 'Password change' %} {% endblock %}

{% block navbar %}
					<li class="divider-vertical">
					<li><a href="/peakAnalyzer/regular/listProject/"><span class="icon-briefcase"></span> Back to Workspace</a></li>
					</li>
					
					<li class="divider-vertical"></li>
						<li class="dropdown"><a href="#" class="dropdown-toggle"
							data-toggle="dropdown">
							{% if user.is_authenticated %} <i class="icon-user"></i> {{ user.username }} {% else %} Account {% endif %} <b class="caret"></b> </a>
							<ul class="dropdown-menu">
								<li><a href="/peakAnalyzer/accounts/logout/"><span class="icon-off"></span> Logout</a></li>
							</ul>
					</li>
							
{% endblock %}
{% block content %}
<style type="text/css">
.title{
padding-top:40px;
margin: 10px auto;
    display: block;
    text-align:center;
 
}
#container_password {
	padding-top: 50px;
}
</style>

<h1 class="title" align="center">{% trans 'Change Password' %}</h1>

<div class="container" id="container_password">
<div class="row-fluid">
<div class="span4 offset4">
<div class="well">
<form action="" method="post">
{% csrf_token %}


<p class="aligned wide">	
	<label for="id_old_password">{% trans 'Old password:' %}</label>
	{{ form.old_password }}
	{% if form.old_password.errors %}
	<div class="alert alert-error">
        <p class="errors">{{ form.old_password.errors.as_text }}</p>
      </div>
      {% endif %}
</p>


<p class="aligned wide">
<label for="id_new_password1">{% trans 'New password:' %}</label>
{{ form.new_password1 }}
{% if form.new_password1.errors %}
	<div class="alert alert-error">
        <p class="errors">{{ form.new_password1.errors.as_text }}</p>
      </div>
      {% endif %}
</p>

<p class="aligned wide">
<label for="id_new_password2">{% trans 'Confirm password:' %}</label>
{{ form.new_password2 }}
{% if form.new_password2.errors %}
	<div class="alert alert-error">
        <p class="errors">{{ form.new_password2.errors.as_text }}</p>
      </div>
      {% endif %}

</p>

<button class="btn btn-inverse" type="submit">Change my password</button>
<!-- <p><input type="submit" value="{% trans 'Change my password' %}" /></p> -->
</form>
</div>
</div>
</div>
</div>


{% endblock %}

{% block content-related %}

{% endblock %}